package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by luoxinmin on 2020/9/12.
 */
@Controller
@RequestMapping("/admin")
public class AdminController {
    @RequestMapping("/{admin}")
    public String show(@PathVariable("admin") String admin) {//admin/user---/WEB-INF/view/user.jsp
        System.out.println("admin = " + admin);
        return admin;
    }
}
